﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace _06_结构
{
    /// <summary>
    /// 规范上必须给字段前加下划线
    /// </summary>
    public struct Person
    {
       public string _name; //字段， 不属于变量，所以需要声明为public
       public int _age;
       public Gender _gender;
    }

    public enum Gender
    {
        男, 女
    }

    class Program
    {
        

        
        static void Main(string[] args)
        {
            Person zsPerson;
            zsPerson._age = 12;
            zsPerson._gender = Gender.女;
            zsPerson._name = "张三";
            Console.WriteLine("{0},{1},{2}", zsPerson._name, zsPerson._gender, zsPerson._age);

            Console.ReadKey();
        }
    }
}
